package com.example.yangyinzhaixian;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;

public class ShezhiActivity extends AppCompatActivity implements View.OnClickListener {

    private Button login_blank_btn;
    private TextView shezhi_text;
    private WebView shezhi_WebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_shezhi);
        initView();
        Intent intent = getIntent();
        String url = intent.getStringExtra("url");
        String text = intent.getStringExtra("text");
        shezhi_text.setText(text);
        shezhi_WebView.loadUrl(url);

    }

    private void initView() {
        login_blank_btn = (Button) findViewById(R.id.login_blank_btn);
        shezhi_text = (TextView) findViewById(R.id.shezhi_text);
        shezhi_WebView = (WebView) findViewById(R.id.shezhi_WebView);
        login_blank_btn.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.login_blank_btn:

                break;
        }
    }
}
